package br.com.fidalgotecnologia.layar.json;






import org.json.JSONObject;

import br.com.fidalgotecnologia.layar.entity.Action;



public class ActionJson {
	private Action action;
	
	public ActionJson(Action action){
		this.action=action;
	}
	
	@Override
	public String toString() {
		String retorno = null;
		JSONObject json = new JSONObject();
		try {
			json.put( "value",action.getActivityMessage());
			retorno = json.toString();
		} catch (Exception  e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return retorno;
	}


}
